package com.jk.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @详细介绍类情况.
 * @ClassName cartOrderEntity
 * @Author 王倚天
 * @Date 2022/6/7
 * @Version 1.0
 */
@Data
@Document(collection =  "cartOrderEntity")
public class cartOrderEntity implements Serializable{
    private static final long serialVersionUID = 2006762641515872124L;
    private String id;
    private String orderId;
    private String shopId;
    private Integer userId;
    private Integer sumPrice;
    private Integer state;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date purchaseDate;
}
